package android.support.v4.app;

import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;

final class FragmentState
  implements Parcelable
{
  public static final Parcelable.Creator CREATOR = new q();
  final String a;
  final int b;
  final boolean c;
  final int d;
  final int e;
  final String f;
  final boolean g;
  final boolean h;
  final Bundle i;
  Bundle j;
  Fragment k;

  public FragmentState(Parcel paramParcel)
  {
    this.a = paramParcel.readString();
    this.b = paramParcel.readInt();
    if (paramParcel.readInt() != 0)
    {
      l = 1;
      this.c = l;
      this.d = paramParcel.readInt();
      this.e = paramParcel.readInt();
      this.f = paramParcel.readString();
      if (paramParcel.readInt() == 0)
        break label110;
      l = 1;
      this.g = l;
      if (paramParcel.readInt() == 0)
        break label115;
    }
    label110: label115: for (int l = i1; ; l = 0)
      while (true)
      {
        while (true)
        {
          this.h = l;
          this.i = paramParcel.readBundle();
          this.j = paramParcel.readBundle();
          return;
          l = 0;
        }
        l = 0;
      }
  }

  public FragmentState(Fragment paramFragment)
  {
    this.a = paramFragment.getClass().getName();
    this.b = paramFragment.f;
    this.c = paramFragment.o;
    this.d = paramFragment.w;
    this.e = paramFragment.x;
    this.f = paramFragment.y;
    this.g = paramFragment.B;
    this.h = paramFragment.A;
    this.i = paramFragment.h;
  }

  public final int describeContents()
  {
    return 0;
  }

  public final void writeToParcel(Parcel paramParcel, int paramInt)
  {
    int l = 1;
    paramParcel.writeString(this.a);
    paramParcel.writeInt(this.b);
    if (this.c)
    {
      paramInt = 1;
      paramParcel.writeInt(paramInt);
      paramParcel.writeInt(this.d);
      paramParcel.writeInt(this.e);
      paramParcel.writeString(this.f);
      if (!(this.g))
        break label106;
      paramInt = 1;
      paramParcel.writeInt(paramInt);
      if (!(this.h))
        break label111;
    }
    label106: label111: for (paramInt = l; ; paramInt = 0)
      while (true)
      {
        while (true)
        {
          paramParcel.writeInt(paramInt);
          paramParcel.writeBundle(this.i);
          paramParcel.writeBundle(this.j);
          return;
          paramInt = 0;
        }
        paramInt = 0;
      }
  }
}